<!DOCTYPE HTML>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <link rel="stylesheet" href="css/api.css">
    <link rel="stylesheet" href="css/box.css">
    <script type="text/javascript" src="script/public.js"></script>
</head>

<body class='center'>
    <div>
        <div class='row'>
            <div tapmode='active' class='clickitem' onclick="GotoWin('html/wina.html')">监听Html5事件</div>
            <div tapmode='active' class='clickitem' onclick="GotoWin('html/wind.html')">向Html5发送事件</div>
            <div tapmode='active' class='clickitem' onclick="GotoWin('html/winb.html')">Html5访问Native测试</div>
        </div>
        <div class='row'>
            <div tapmode='active' class='clickitem' onclick="GotoWin('html/winc.html')">拦截Url访问测试</div>
            <div tapmode='active' class='clickitem' onclick="GotoWin('html/wine.html')">窗口测试</div>
            <div class='clickitem' onclick="test_select();">选择</div>
        </div>
    </div>
</body>
<script type="text/javascript">
function test_select() {
    var citySelector = api.require('citySelector');
    citySelector.open({
        y: api.frameHeight / 1.6,
        fixedOn: api.frameName
    }, function(ret, err) {
        if (ret) {
            alert(JSON.stringify(ret));
        } else {
            alert(JSON.stringify(err));
        }
    });
};
</script>

</html>